home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C
/
Applications
/
MacGzip 1.0
/
source
/
Mac
/
PrefsDlg.h
< prev
next >
Wrap
Text File
|
1995-08-23
|
3KB
|
165 lines
/*
* PrefsDlg.h
*/
/*
* prefs file constants
*/
#define kPrefsNameStrID 128
#define kPrefsCreatorType '\?\?\?\?'
#define kPrefsFileType 'pref'
#define kPrefsResourceType 'Pref'
#define kPrefsResourceID 128
#define kPrefsFndrMsgStrID -16397
#define kPrefsStrType 'STR '
/*
* Resources
*/
#define kPrefGenPDLOG_ID 128
#define kPrefCommDITL_ID 128
#define kPrefgzipDITL_ID 129
#define kPrefCompDITL_ID 130
#define kPrefDecoDITL_ID 131
#define kPrefMiscDITL_ID 132
#define kPrefFoldDITL_ID 133
/*
* Common (layout) items
*/
#define kPrefComm_OK_ID 1
#define kPrefComm_Cancel_ID 2
#define kPrefComm_Dflt_ID 3
#define kPrefComm_Menu_ID 4
#define kPrefComm_Help_ID 5
/* Menu items */
#define pmPrefgzip 1
#define pmPrefcomp 2
#define pmPrefdeco 3
#define pmPreffold 4
#define pmPrefmisc 5
/*
* gzip Prefs items
*/
#define kPrefgzip_Force 1
#define kPrefgzip_NoName 10
#define kPrefgzip_Name 11
#define kPrefgzip_Custom 3
#define kPrefgzip_GunSuff 5
#define kPrefgzip_Suffix 4
#define kPrefgzip_Level 7
#define kPrefgzip_Up 8
#define kPrefgzip_Down 9
/*
* Compress Prefs items
*/
#define kPrefComp_Keys 1
#define kPrefComp_IC 2
#define kPrefComp_ASCII 3
#define kPrefComp_NotMB 4
#define kPrefComp_RFPopup 5
#define kPrefComp_ModePopup 6
#define kPrefComp_ModeA 7
/* Menu items */
#define pmPrefComp_RFAsk 1
#define pmPrefComp_RFMB 2
#define pmPrefComp_RFNot 3
#define pmPrefComp_RFQuit 4
#define pmPrefComp_MASCII 1
#define pmPrefComp_MBin 2
#define pmPrefComp_MMB 3
/*
* Decompress Prefs items
*/
#define kPrefDeco_Keys 1
#define kPrefDeco_IC 2
#define kPrefDeco_Fetch 3
#define kPrefDeco_MB 4
#define kPrefDeco_CText 5
#define kPrefDeco_TBin 6
#define kPrefDeco_CBin 7
#define kPrefDeco_MPopup 8
/* Menu items */
#define pmPrefDeco_MASCII 1
#define pmPrefDeco_MBin 2
/*
* Folder Prefs items
*/
#define kPrefFold_FNot 1
#define kPrefFold_FFold 2
#define kPrefFold_FAll 3
#define kPrefFold_UseDest 4
#define kPrefFold_Dest 5
/*
* Folder Prefs items
*/
#define kPrefMisc_KeepOrig 1
#define kPrefMisc_Beep 2
#define kPrefMisc_Quit 3
#define kPrefMisc_Keys 4
#define kPrefMisc_SelPopup 5
#define kPrefMisc_Reset 7
/* Menu items */
#define pmPrefMisc_gzip 1
#define pmPrefMisc_gunzip 2
#define pmPrefMisc_auto 3
typedef struct
{
short ExtraDITL[5];
short BaseDITL;
short Selection;
} DlgInfo, *DlgInfoPtr;
/*
* From DialogBits,C.K. Haun
* Apple Developer Tech Support
*/
#define kFldrAliasResID 128
/* key equates */
enum {
kEnterKey = 0x03,
kTabKey = 9,
kReturnKey = 0x0D,
kBackSpace = 8,
kEscKey = 0x1B,
kLeftArrowKey = 0x1C,
kRightArrowKey,
kUpArrowKey,
kDownArrowKey,
kDeleteKey = 0x7F
};